package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Setter@Getter
public class QueryObject {
    //当前页为第一页
    private int page = 1;
    //默认显示每页显示10条数据
    private int rows = 10;
    //排序相关
    private String sort;
    private String order;
    //分页
    public int getStart(){
        return (page - 1) * rows;
    }
}
